package com.crm.controller;

import com.crm.commons.domain.ResponseData;
import com.crm.service.ICrmCustomerService;
import com.crm.vo.ConvertClueVo;
import org.springframework.web.bind.annotation.*;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author junxian,dou
 * @since 2024-11-25
 */
@RestController
@RequestMapping("/crmCustomer")
public class CrmCustomerController extends BaseController {

    @Resource
    private ICrmCustomerService crmCustomerService;


    @PostMapping("/convertClue")
    public ResponseData convertClue(@RequestBody ConvertClueVo convertClue ){
        crmCustomerService.convertClue(convertClue,getUserInfo());
        return ResponseData.success();
    }

}
